package com.dc.feign;


import com.dc.common.ResponseResultVO;
import com.dc.model.Device;
import com.dc.model.ShiftManagement;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * base模块服务调用
 * , url = "http://192.168.0.69:20001"
 */
@FeignClient(value = "dc-control-base", url = "http://192.168.0.69:20001")
public interface BaseApiServiceFeign {

    @RequestMapping(value = "/shiftManagement/insertShiftManagement", method = RequestMethod.POST)
    ResponseResultVO insertShiftManagement(@RequestBody ShiftManagement dto);

    @RequestMapping(value = "/device/insertDeviceOther", method = RequestMethod.POST)
    ResponseResultVO insertDevice(@RequestBody Device device);

}
